package com.eds.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.Notification;

import java.util.List;

/**
 * @author 34195
 * @description 针对表【notification(通知主表)】的数据库操作Service
 * @createDate 2025-04-07 16:20:11
 */
public interface NotificationService extends IService<Notification> {
    // 获取用户通知列表
    List<Notification> getUserNotificationList(String token, String noticeType);

    // 保存通知
    Boolean saveNotification(Notification notification);


    // 获取未读通知
    Integer getUnreadNotification(String token, String noticeType);

    // 标记已读
    boolean readNotification(String token, Long notificationId);

    // 删除通知
    boolean deleteNotificationById(String token, Long notificationId);
}
